package emp.entidades;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.axcessfinancial.domain.*;
import com.sun.org.apache.xml.internal.security.c14n.helper.C14nHelper;

@Entity
@Table(name="guiaRemisionDet")

public class EntGuiaRemisionDet  extends com.axcessfinancial.domain.BaseEntity implements Serializable{

	public EntGuiaRemisionDet() {
		// TODO Auto-generated constructor stub
	}

	private EntGuiaRemision entGuiaRemision;
	
	private EntArticulo entArticulo;
	
	private double cantidad;
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="idGuiaRemision")	
	public EntGuiaRemision getEntGuiaRemision() {
		return entGuiaRemision;
	}
	public void setEntGuiaRemision(EntGuiaRemision entGuiaRemision) {
		this.entGuiaRemision = entGuiaRemision;
	}
	
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="idArticulo")
	public EntArticulo getEntArticulo() {
		return entArticulo;
	}
	public void setEntArticulo(EntArticulo entArticulo) {
		this.entArticulo = entArticulo;
	}
	
	@Column(name="cantidad", length=12, precision=2)
	public double getCantidad() {
		return cantidad;
	}
	public void setCantidad(double cantidad) {
		this.cantidad = cantidad;
	}
	
	
	public EntGuiaRemisionDet(EntGuiaRemision entGuiaRemision,
			EntArticulo entArticulo, double cantidad) {
		super();
		this.entGuiaRemision = entGuiaRemision;
		this.entArticulo = entArticulo;
		this.cantidad = cantidad;
	}
	
}
